add_library(hello_c SHARED iq_hello.c)

set_target_properties(hello_c 
    PROPERTIES 
        LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/
        RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/
        ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/)